"""
@version: python3
#@time: 2021/06/23
@file: weather_alarm.py
@time: 2021/6/23 下午2:44
@主要爬取了天气预警的信息数据
"""
import requests
import json
import pandas as pd

data = requests.get("http://weather.cma.cn/api/map/alarm").text
data = json.loads(data)
data = pd.DataFrame(data['data'])
print(data)